.hero {
  background-image: url('../../images/hero_index.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white; /* Ensure white text on background image */
  padding: var(--spacing-5xl) 0;
  text-align: center;
}

.hero h1,
.hero p {
  color: white !important; /* Force white text in hero section */
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  text-align: left;
  position: relative;
}
.hero-content h1{
  padding-top: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-tight);
  white-space: nowrap;
}

.hero p {
  font-family: var(--font-primary);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-normal);
  margin-bottom: 0;
  opacity: 0.9;
  max-width: 500px;
  line-height: var(--line-height-normal);
}

/* Tutoring buttons container */
.tutoring-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Tutoring button shared styles */
.btn--tutoring {
  width: 260px;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
}

/* ACT/SAT button color */
.btn--actsatprep {
  background: rgb(233, 181, 37);
  color: #000000;
}

/* Academic tutoring button color */
.btn--academictutoring {
  background: #ffffff;
  color: #000000;
}
.btn--testimonials {
  margin-top: 1.5rem;
}

.hero-container {
  position: relative;

}
.partner-credit {
  position: absolute;
  bottom: -8rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  color: rgb(0, 0, 0);
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 500;
  z-index: 10;
}

.partner-credit img {
  height: 80px;
  width: auto;
  display: block;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-2xl);
  }
  
  .hero h1 {
    white-space: normal;
    font-size: var(--font-size-h2);
  }
  
  .tutoring-buttons {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .btn--tutoring {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1rem;
    min-height: 48px;
  }
  
  .partner-credit {
    position: static;
    margin-top: var(--spacing-xl);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--spacing-3xl) 0;
  }
  
  .tutoring-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn--tutoring {
    width: 100%;
    max-width: 240px;
  }
  
  .partner-credit {
    gap: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .partner-credit img {
    height: 60px;
  }
}
